<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../layout.xsl"/>

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">

    <link href="212.26.144.104:1204/js/jquery.tools/jquery.tools.min.css" rel="stylesheet" type="text/css" />
    <script src="212.26.144.104:1204/js/jquery.tools/jquery.tools.min.js">/**/</script>
    <script type="text/javascript" src="212.26.144.104:1204/js/index.js">/**/</script>


    <div class="event-top">
      <div class="event-avatar">
        <div class="event-corner">  </div>
        <div class="event-socials">
          <ul>
            <xsl:if test="$Main/top-events/row/facebook != ''">
              <li>
                <a href="{$Main/top-events/row/facebook}">
                  <img src="212.26.144.104:1204/images/fb.png" />
                </a>
              </li>
            </xsl:if>
            <xsl:if test="$Main/top-events/row/google != ''">
              <li>
                <a href="{$Main/top-events/row/google}">
                  <img src="212.26.144.104:1204/images/google.png" />
                </a>
              </li>
            </xsl:if>
            <xsl:if test="$Main/top-events/row/vk != ''">
              <li>
                <a href="{$Main/top-events/row/vk}">
                  <img src="212.26.144.104:1204/images/vk.png" />
                </a>
              </li>
            </xsl:if>

          </ul>

        </div>

        <xsl:variable name="top_img" select="$Main/attaches/row[is_top = 1]"/>
        <img src="{$Files}{$top_img/path}{$top_img/id}original{$top_img/file_name}" width="640" height="280" />
      </div>
      <div class="event-desc">
        <div class="event-date">
          <span>
            <xsl:value-of select="$Main/top-events/row/public_date/@day"/>
          </span>
          <xsl:text> </xsl:text>
          <xsl:value-of select="$Main/top-events/row/public_date/@monthname"/>
        </div>
        <p class="title">
          <a href="/events/{$Main/top-events/row/idt}">
            <xsl:value-of select="$Main/top-events/row/title"/>
          </a>
        </p>
        <p class="desc">
          <xsl:value-of select="$Main/top-events/row/desc" disable-output-escaping="yes"/>
        </p>
      </div>
    </div>













    <!-- <div class="container_main">
      <div class="box_main" id="box1">


        <div class="box_content">
           
          <h2>
            <a href="{$Cats/row[id=862]/idt}">
              <xsl:value-of select="$Cats/row[id=862]/title"/>
            </a>
          </h2>
          <p>
            <xsl:value-of select="$Cats/row[id=862]/desc" disable-output-escaping="yes"/>
          </p>

        </div>
        <div class="box_bg on">&nbsp;</div>


      </div>

      <div class="box_main center" id="box2">
        <div class="box_content">
           

          <h2>
            <a href="{$Cats/row[id=875]/idt}">
              <xsl:value-of select="$Cats/row[id=875]/title"/>
            </a>
          </h2>
          <p>
            <xsl:value-of select="$Cats/row[id=875]/desc" disable-output-escaping="yes"/>
          </p>
        </div>
        <div class="box_bg"> &nbsp; </div>
      </div>

      <div class="box_main" id="box3">
        <div class="box_content">

           
          <h2>
            <a href="{$Cats/row[id=811]/idt}">
              <xsl:value-of select="$Cats/row[id=811]/title"/>
            </a>
          </h2>
          <p>
             
            <xsl:value-of select="$Cats/row[id=811]/desc" disable-output-escaping="yes"/>
          </p>
        </div>
      
      </div>
    </div>-->


    <!-- <div class="calendar-title">
     
      <div class="day-now">
        <span class="on">
          <img src="images/ico-cal.png" /> Календарь
        </span>
        <span>
          <img src="images/ico-afisha.png" /> Афиша
        </span>
      </div>
    </div>


    <xsl:call-template name="Calendar"/>-->
    <div class="month-switcher">
      <table cellpadding="0" cellspacing="0" border="0">
        <tbody>
          <tr>
            <td class="prev2">

              Афиша событий

            </td>
            <td class="this">
              <xsl:value-of select="$Date/@monthname"/>,

              <xsl:value-of select="$Date/@year"/>
            </td>
            <td class="next">
              Сегодня <xsl:value-of select="$Date/@day"/>
              <xsl:text> </xsl:text>
              <a href="/calendar/{$Date/@year}/{$Date/@dmonth}">
                <xsl:value-of select="$Date/@monthname"/>
              </a>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <xsl:call-template name="EventsList">
      <xsl:with-param name="node" select="$Main/last-events/row"/>
    </xsl:call-template>


    <div class="show-all-container">
      <a class="show-all" href="/events"> Календарь событий </a>

    </div>

    <!-- А это типа в виде афиши теже самые мероприятия -->










    <!--
        <h1>
          <xsl:value-of select="$Static/title" disable-output-escaping="yes"/>
        </h1>
     
        <xsl:value-of select="$Static/text" disable-output-escaping="yes"/>


    


 
        <xsl:value-of select="$Static/ceo" disable-output-escaping="yes"/>
    
   <div class="col2">

      <h2>Новое в блоге</h2>
      <ul class="lastNews">
        <xsl:for-each select="$Main/top/row">
          <li>
            <p class="title">
              <a href="{url}/{idt}">
                <xsl:value-of select="title"/>
              </a>
            </p>
            <img width="195" src="{$Files}{path}{id}avatar{file_name}"/>
            <p class="date">
              <xsl:call-template name="Write.Date">
                <xsl:with-param name="node" select="public_date"/>
              </xsl:call-template>
            </p>
            <div class="desc">
              <xsl:value-of select="desc" disable-output-escaping="yes"/>
            </div>
          </li>
        </xsl:for-each>

      </ul>
    </div>-->







  </xsl:template>


</xsl:stylesheet>